package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author benben278
 * @create 2022-03-18 20:44
 */
@Mapper
public interface UserDao {
    //根据用户名查询用户信息
    @Select("select * from t_user where username = #{username}")
    User findByUsername(String username);
}
